package com.atguigu.springcloud.service;

import org.springframework.cloud.openfeign.FeignClient;

import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
//通配降级fallback
@FeignClient(value = "CLOUD-PROVIDER-HYSTRIX-PAYMENT", fallback = PaymentFallbackService.class)
public interface PaymentHystrixService {


    @GetMapping("/payment/hystrix/ok/{id}")
    public String pamentInfo_ok1(@PathVariable("id") Integer id);

    /**
     * @param
     * @return
     * @description: TODO
     */
    @GetMapping("/payment/hystrix/timeout/{id}")
    public String pamentInfo_TimeOut1(@PathVariable("id") Integer id);

}
